import { request } from '@ruifox-cms/utils'

// 根据用户id获取菜单权限
export function getMenuByUserId(params) {
    return request({
        url: '/auth/menu/selectByUserId',
        method: 'get',
        params
    })
}

//获取所有角色
export function getRoleList(params) {
    return request({
        url: '/auth/role/selectList',
        method: 'get',
        params
    })
}